import { http, toast} from '@/uni_modules/uview-plus'
/**
 * 注意：get请求的配置等，都在第二个参数中，详见前面解释
 * get 请求配置配置请查看 /uni_modules/uview-plus/libs/luch-request/core/Request.js
 */

// 微信公众号授权，使用 code 授权码
export const wechatMpSociaLogin = (params, config = {}) => http.post(
    '/h5/member/auth/wechat/wechat-mp-social-login', 
    params, 
    {  custom: { }, ...config }
)

// 微信社交授权的跳转
export const wechatSocialAuthRedirect = (params, config = {}) => http.get(
    '/h5/member/auth/wechat/social-auth-redirect', 
    { data: params, custom: { }, ...config}
)

// 上传文件
// export const upload = (data) => http.upload('/ebapi/public_api/index', data)
